//
//  EmptyOrder.m
//  MineOrderUI
//
//  Created by mac2 on 16/11/19.
//  Copyright © 2016年 mac2. All rights reserved.
//

#import "EmptyOrder.h"
@implementation EmptyOrder


-(void)setupUI{
    self.backgroundColor = [UIColor cz_colorWithHex:0xefefef];
    UIImageView *empytImageV = [[UIImageView alloc]init];
    [self addSubview:empytImageV];
    UILabel *emptyLabel = [[UILabel alloc]init];
//    [emptyLabel setFont:];
    [emptyLabel setFont:[UIFont systemFontOfSize:14]];
    [emptyLabel setTextColor:[UIColor grayColor]];
    [self addSubview:emptyLabel];
    emptyLabel.text = @"你还没有相关订单哦~";
    empytImageV.image = [UIImage imageNamed:@"v2_order_empty"];
    [emptyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self);
    }];
    [empytImageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.mas_equalTo(emptyLabel.mas_top).mas_offset(-17);
        make.centerX.equalTo(emptyLabel);
    }];
}

@end
